package kr.hkit.powerjava.chapter08;

public class Circle {
	private int r;
	private int cx;
	private int cy;
	
	public double area(){
		double a = r * r * 3.14;
		return a;
		
	}

	public int getR() {
		return r;
	}

	public void setR(int r) {
		this.r = r;
	}

	public int getCx() {
		return cx;
	}

	public void setCx(int cx) {
		this.cx = cx;
	}

	public int getCy() {
		return cy;
	}

	public void setCy(int cy) {
		this.cy = cy;
	}

	@Override
	public String toString() {
		return "Circle [r=" + r + ", cx=" + cx + ", cy=" + cy + ", area="
				+ area() + "]";
	}

	public static void main(String[] args) {
		Circle o = new Circle();
		
		o.setCx(2);
		o.setCy(5);
		o.setR(3);
		
		System.out.println(o);
	}
}
